package com.atguigu.es.beans;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * Created by Smexy on 2022/5/21
 *
 *  标准的JAVABean
 *          ①空参构造器
 *          ②为私有属性提供公有的getter,setter
 */
@Data // 提供getter,setter,tostring
@AllArgsConstructor
@NoArgsConstructor
public class Emp {

    private String empid;
    private String name;
    private String gender;
    private String hobby;
    // 不要使用基本数据类型 int a有默认值 0
    private Integer age;
    private Double balance;
}
